<{include file="top_v2.html" }>
<style>
    #qrcode *{max-width: 100%}
</style>
</head>
<body>
<div id="wrap" class="pt pb coupon-page">
    <div class="header">
        卡券
        <a href="javascript:window.history.back();" class="back"></a>
    </div>
    <div class="coupon-container">
        <p class="name"><{$obj.cardTitle}></p>
        <div id="qrcode" class="card" ></div>
        <p class="card-num">卡券号: <{$obj.code}></p>
        <div class="info">
            <div class="title">卡券详情</div>
            <div class="item">
                <label>优惠说明</label>
                <p><{$obj.desc}></p>
            </div>
            <div class="item">
                <label>有效日期</label>
                <p class="red"><{'Y-m-d'|date:$obj.beginTimestamp}>至<{'Y-m-d'|date:$obj.endTimestamp}></p>
            </div>
            <div class="item">
                <label>可用时段</label>
                <p class="red"><{$obj['availableDay']}></p>
            </div>
            <div class="item">
                <label>电话</label>
                <p><{$obj.phone}></p>
            </div>
            <div class="item">
                <label>使用须知</label>
                <p><{$obj.notice}></p>
            </div>
            <div class="item" onclick="window.location.href='<{u('storelist?cardId='|cat:$obj.cardId)}>'">
                <label>适用门店</label>
                <p class="tr"><a href="javascript:void(0);" class="more"></a></p>
            </div>
        </div>
    </div>
</div>




<script src="<{$preStaticUrl}>Wap/v2/js/qrcode.min.js"></script>
<script>
    $(document).ready(function(){

        var qrcode = new QRCode(document.getElementById("qrcode"), {
            width : 340,height : 340
        });
        qrcode.makeCode('<{$obj.code}>');
    })



</script>
</body>
</html>